package com.hgyc.mom.eam.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.annotation.DictColumn;
import com.hgyc.mom.core.annotation.TableDict;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 设备点检保养计划设备信息
 * </p>
 *
 * @author fwj
 * @since 2025-08-13
 */
@Data
@TableName("eam_check_maintain_plan_equipment")
@Schema(name="设备点检保养计划设备信息对象", description="设备点检保养计划设备信息对象")
public class EamCheckMaintainPlanEquipment implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private Long id;

    @Excel(name = "计划ID")
    @EQ
    @Schema(description = "计划ID")
    private Long planId;

    @Excel(name = "设备ID")
    @EQ
    @Schema(description = "设备ID")
    @TableDict(table="eam_equipment", key = "id", columns = {
            @DictColumn(name = "code", alias = "equipmentCode"),
            @DictColumn(name = "name", alias = "equipmentName")
    })
    private Long equipmentId;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
